package com.pureut.order.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.pureut.order.domain.PurchaseOrder;
import com.pureut.order.dto.PurchaseOrderDto;
import com.pureut.order.dto.PurchaseOrderQYWXDto;
import com.pureut.order.vo.PurchaseOrderVo;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface PurchaseOrderMapper extends BaseMapper<PurchaseOrder> {

    /**
     * 采购订单列表
     */
    List<PurchaseOrderDto> getPurchaseOrderList(PurchaseOrderVo purchaseOrderVo);

    /**
     * 查看订单信息
     */
    PurchaseOrderDto getViewById(Long id);

    /**
     * 查看订单信息(企业微信使用)
     */
    PurchaseOrderQYWXDto getViewByIdQYWX(Long id);
}
